package com.grm.controller;

import com.grm.common.Result;
import com.grm.service.impl.CaptchaServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CaptchaController {
    @Autowired
    private CaptchaServiceImpl captchaService;
    @GetMapping("/captcha")
    public Result captcha(){
        return captchaService.getCaptcha();
    }
}
